import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({

    base: process.env.BASE_URL,
    routes: [
        {
            path: '/home',
            component: Home
        },
        {
            path: '/find',
            component: () => import('./views/Find.vue'),
        },
        {
            path: '/mine',
            component: () => import('./views/Mine.vue'),
        },
        {
            path: '/order',
            component: () => import('./views/Order.vue'),
        },
        {
            path: '/myself',
            component: () => import('./views/myself.vue'),
        },
        {
            path: "/",
            redirect: "/home"
        },
        {
            path: '/home/discount',
            component: () => import('./views/discount.vue'),
        },
        {
            path: '/home/search',
            component: () => import('./views/Search.vue')
        },


        {
            path: '/home/xiao',
            component: () => import('./views/xiao.vue'),
        }
    ]
})
